package cn.dy.sbo.core;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.Page;

import cn.common.lib.springside.orm.BaseDao;
import cn.common.lib.springside.orm.ExtPropertyFilter;
import cn.common.lib.springside.service.EntityManager;
import cn.dy.sbo.api.OrdersDao;
import cn.dy.sbo.model.Orders;

@Component
@Transactional
public class OrdersManager extends EntityManager<Orders, Long>{

	@Autowired
    private OrdersDao ordersDao;
	@Override
	protected BaseDao<Orders, Long> getEntityDao() {
		return ordersDao;
	}
	public Page<Orders> extSearch(Page<Orders> page,
			List<ExtPropertyFilter> filters) {
		return ordersDao.extFindPage(page, filters);
	}

}
